import * as types from '../mutation-types'

//格外数据（针对部分跳页需要传递大量数据不适合放到url中的使用）
let state = {
    info:{},
    data:{}
};

const mutations = {
  [types.SET_ADDITIONAL] (state,data) {
      if(data.info&&data.data){
          state.info = data.info;
          state.data = data.data;
      }else {
          state.data = data
      }
  },
};

export default {
  state,
  mutations,
}
